package com.ruoyi.biz.letter.domain;

import java.util.Date;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.biz.letter.read.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 政务服务热线服务对象 biz_mayor_hotline
 *
 * @author Fei.Cong
 * @date 2024-07-18
 */
@TableName(value = "biz_mayor_hotline")
public class BizMayorHotline extends CategoryBase {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelIgnore
    private Long id;

    /**
     * 服务单编号
     */
    @ExcelProperty("服务单编号")
    private String letterNumber;

    /**
     * 诉求标题
     */
    @ExcelProperty("诉求标题")
    private String letterTitle;

    /**
     * 诉求内容
     */
    @ExcelProperty("诉求内容")
    private String letterContent;

    /**
     * 诉求人姓名
     */
    @ExcelProperty("诉求人姓名")
    private String letterUsername;

    /**
     * 诉求电话
     */
    @ExcelProperty("诉求电话")
    private String letterPhone;

    /**
     * 诉求类型
     */
    @ExcelProperty(value = "诉求类型", converter = HelpConverter.class)
    private String type;

    /**
     * 归口类型
     */
    @ExcelProperty("归口类型")
    private String letterType;

    /**
     * 来源渠道
     */
    @ExcelProperty(value = "来源渠道", converter = SourceChannelConverter.class)
    private String source;

    /**
     * 紧急程度
     */
    @ExcelProperty(value = "紧急程度", converter = EmergencyConverter.class)
    private String emergency;

    /**
     * 事件发生地
     */
    @ExcelProperty("事件发生地")
    private String ownerArea;

    /**
     * 交办时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("交办时间")
    private Date letterTime;

    /**
     * 办结时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("办结时间")
    private Date finishTime;

    /**
     * 应办结时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("应办结时间")
    private Date completeTime;

    /**
     * 是否办结超期
     */
    @ExcelProperty(value = "是否办结超期", converter = BizYesOrNoConverter.class)
    private String isTimeout;

    /**
     * 回访满意度
     */
    @ExcelProperty("回访满意度")
    private String satisfaction;

    /**
     * 任务单状态
     */
    @ExcelProperty(value = "任务单状态", converter = MissionStatusConverter.class)
    private String orderStatus;

    /**
     * 是否有责重派
     */
    @ExcelProperty(value = "是否有责重派", converter = BizYesOrNoConverter.class)
    private String isDutyReassign;

    /**
     * 部门id
     */
    @ExcelIgnore
    private Long deptId;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @ExcelIgnore
    private String delFlag;

    /**
     * 处理部门
     */
    @TableField(exist = false)
    @ExcelProperty(value = "处理部门", converter = AcceptDeptConverter.class)
    private String handleDept;

    @ExcelIgnore
    private String md5;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setLetterNumber(String letterNumber) {
        this.letterNumber = letterNumber;
    }

    public String getLetterNumber() {
        return letterNumber;
    }

    public void setLetterTitle(String letterTitle) {
        this.letterTitle = letterTitle;
    }

    public String getLetterTitle() {
        return letterTitle;
    }

    public void setLetterContent(String letterContent) {
        this.letterContent = letterContent;
    }

    public String getLetterContent() {
        return letterContent;
    }

    public void setLetterUsername(String letterUsername) {
        this.letterUsername = letterUsername;
    }

    public String getLetterUsername() {
        return letterUsername;
    }

    public void setLetterPhone(String letterPhone) {
        this.letterPhone = letterPhone;
    }

    public String getLetterPhone() {
        return letterPhone;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setLetterType(String letterType) {
        this.letterType = letterType;
    }

    public String getLetterType() {
        return letterType;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getSource() {
        return source;
    }

    public void setEmergency(String emergency) {
        this.emergency = emergency;
    }

    public String getEmergency() {
        return emergency;
    }

    public void setOwnerArea(String ownerArea) {
        this.ownerArea = ownerArea;
    }

    public String getOwnerArea() {
        return ownerArea;
    }

    public void setLetterTime(Date letterTime) {
        this.letterTime = letterTime;
    }

    public Date getLetterTime() {
        return letterTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setCompleteTime(Date completeTime) {
        this.completeTime = completeTime;
    }

    public Date getCompleteTime() {
        return completeTime;
    }

    public void setIsTimeout(String isTimeout) {
        this.isTimeout = isTimeout;
    }

    public String getIsTimeout() {
        return isTimeout;
    }

    public void setSatisfaction(String satisfaction) {
        this.satisfaction = satisfaction;
    }

    public String getSatisfaction() {
        return satisfaction;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setIsDutyReassign(String isDutyReassign) {
        this.isDutyReassign = isDutyReassign;
    }

    public String getIsDutyReassign() {
        return isDutyReassign;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public String getHandleDept() {
        return handleDept;
    }

    public void setHandleDept(String handleDept) {
        this.handleDept = handleDept;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("letterNumber", getLetterNumber())
                .append("letterTitle", getLetterTitle())
                .append("letterContent", getLetterContent())
                .append("letterUsername", getLetterUsername())
                .append("letterPhone", getLetterPhone())
                .append("type", getType())
                .append("letterType", getLetterType())
                .append("source", getSource())
                .append("emergency", getEmergency())
                .append("ownerArea", getOwnerArea())
                .append("letterTime", getLetterTime())
                .append("acceptDept", getAcceptDept())
                .append("finishTime", getFinishTime())
                .append("completeTime", getCompleteTime())
                .append("isTimeout", getIsTimeout())
                .append("satisfaction", getSatisfaction())
                .append("orderStatus", getOrderStatus())
                .append("isDutyReassign", getIsDutyReassign())
                .append("deptId", getDeptId())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
